package com.etcn.modules.statical.base.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import com.etcn.common.controller.BaseController;
import com.etcn.modules.statical.base.pojo.BaseCity;
import com.etcn.modules.statical.base.service.IBaseCityService;

import org.springframework.web.bind.annotation.ResponseBody;
import com.etcn.common.annotation.Manage;

/**
 * 城市controller
 * @author guozc
 * @date: 2018-01-12 13:28:54
 */
@Controller
@RequestMapping("/v1/base")
public class BaseCityController extends BaseController {

	@Autowired
    private IBaseCityService baseCityService;

     /**
     * 查询城市列表
     */
    @Manage
    @RequestMapping(value = "citys", method = RequestMethod.GET)
    public @ResponseBody Object citys(BaseCity baseCity) throws Exception{
    	return baseCityService.findList(baseCity);
    }
    
}